﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Xiaowei.Players.XiaoweiPlayerLib
{
    public abstract class XiaoweiPlayerItemBase
    {
        public string MediaUri { get; set; }
        public string Title { get; set; }
        public string PlayId { get; set; }

        public string CoverUrl { get; set; }

        public override string ToString()
        {
            return Title;
        }
        public override bool Equals(object obj)
        {
            if(obj is XiaoweiPlayerItemBase item)
            {
                return PlayId == item.PlayId;
            }
            return false;
            
        }
        public override int GetHashCode()
        {
            return base.GetHashCode();
        }
    }
}
